package com.leruan.aasimp.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import com.leruan.aasimp.bean.NewCarSaleBean;
import com.leruan.aasimp.bean.SaleCarTypeBean;
import com.leruan.aasimp.dao.CarMainInfoDao;
import com.leruan.aasimp.service.NewCarService;

public class NewCarServiceImpl implements NewCarService{

	@Resource
	private CarMainInfoDao carMainInfoDao;
	
	public List<NewCarSaleBean> getNewCarList(Map<String, String> map, int pageNo)
			throws Exception {
		return carMainInfoDao.getNewCarList(map, pageNo);
	}

	public Long getNewCarTotal(Map<String, String> map) throws Exception {
		return carMainInfoDao.getNewCarTotal(map);
	}

	
	public void setCarMainInfoDao(CarMainInfoDao carMainInfoDao) {
		this.carMainInfoDao = carMainInfoDao;
	}

	public List<SaleCarTypeBean> getCarTypePh(Map<String, String>map)
			throws Exception {
		return carMainInfoDao.getCarTypePh(map);
	}
}
